import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class Test {
    public static void main(String[] args) throws IOException {
       /* File f = new File("Test\\a.txt");
        f.createNewFile();*/
        FileInputStream fis = new FileInputStream("Test\\a.txt");
        FileOutputStream fos = new FileOutputStream("Test\\a.txt");
        byte[] bytes = new byte[1024];
        int len;
        while ((len = fis.read(bytes)) != -1){
            fos.write(bytes,0,len);
        }
        fis.close();
        fos.close();
    }
}
